home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
asmbatch.arc
/
ASM2COM.BAT
next >
Wrap
DOS Batch File
|
1986-06-12
|
487b
|
25 lines
echo off
REM Format: ASM2COM filename [options]
if .%1 == . goto nosource
if exist %1 goto bad-ext
if not exist %1.asm goto nofile
masm %1 %1 %1 nul /N%2
if errorlevel 1 goto endall
rem echo Ctrl-C to skip LINK
rem pause
link %1,%1,nul,nul
erase %1.obj
exe2bin %1 %1.com
erase %1.exe
goto endall
:nosource
echo No source file specified...
goto endall
:bad-ext
echo ".ASM" must NOT be specified
goto endall
:nofile
echo Source file does not exist
:endall
echo on